<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <title>Sistema de Reservas y Préstamos</title>
    <f:view>
        <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
        <style type="text/css">
<!--
body {
	margin-left: 50px;
	margin-top: 50px;
}
-->
</style><head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" media="screen">        

        </head>
        <body>
            <table width="699" height="398" border="0">
                <tr>
                    <td width="689" height="42">
                        <jsp:directive.include file="header.jsp" />
                    </td>
                </tr>
                <tr>
                    <td >
                        <h1>Ingreso al Sistema. </h1>
                        <br/>
                        <h:messages showDetail="true" errorStyle="color: red" infoStyle="color: green"/>
                        <h:form id="login">
                            
                            <h:panelGrid columns="2" border="0" >
                                ID de Usuario: <h:inputText id="username" 
                                                       value="#{usermanager.username}"/>        
                                Password: <h:inputSecret id="password"
                                                         value="#{usermanager.password}"/>
                            </h:panelGrid>
                            <h:commandButton id="submit" 
                                             type="submit"
                                             value="Login"
                                             action="#{usermanager.validateUser}"/>
                            <br>
                        </h:form>              
                        
                    </td>
                </tr>
                <tr>
                    <td height="23">
                        <jsp:directive.include file="footer.jsp" />
                    </td>
                </tr>
        </table>
        </body>
    </f:view>
</html>
